package com.shide.flow.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 流程实例表
 * @TableName flow_instance
 */
@TableName(value ="flow_instance")
@Data
public class FlowInstance implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 流程定义ID
     */
    private Long processId;

    /**
     * 父流程实例ID
     */
    private Long parentInstanceId;

    /**
     * 优先级
     */
    private Integer priority;

    /**
     * 流程实例编号
     */
    private String instanceNo;

    /**
     * 变量json
     */
    private String variable;

    /**
     * 当前所在节点名称
     */
    private String currentNodeName;

    /**
     * 当前所在节点key
     */
    private String currentNodeKey;

    /**
     * 期望完成时间
     */
    private Date expireTime;

    /**
     * 业务KEY
     */
    private String businessKey;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}